@tool
class_name WeatherSystemAgent
extends Node


## 每个一段时间，依据天气对应的概率随机生成天气效果，每次天气的存在时间也随机


@onready var normal_weather: Weather = $NormalWeather
@onready var sunny_weather: Weather = $SunnyWeather
@onready var rainstorm_weather: Weather = $RainstormWeather
@onready var snowstorm_weather: Weather = $SnowstormWeather


@export var env: WorldEnvironment
@export var map: Node2D
@export var probability: Dictionary[Weather.Category, float] = {
    Weather.Category.NORMAL: 0.4,
    Weather.Category.SUNNY: 0.2,
    Weather.Category.RAINSTORM: 0.2,
    Weather.Category.SNOWSTORM: 0.2,
}
@export var duration_range: Vector2 = Vector2(1.5 * 60, 3 * 60)
@export var disabled: bool


func _ready() -> void:
    WeatherSystem._agent = self


func random_weather() -> void:
    pass